[PATCH] amdgpu: add env support for amdgpu.ids path
authorSergio Costas Rodriguez <sergio.costas@canonical.com>
Wed, 2 Nov 2022 14:48:07 +0000 (15:48 +0100)
committerTimo Aaltonen <tjaalton@debian.org>
Sat, 29 Nov 2025 21:35:21 +0000 (23:35 +0200)
commitea09de0f67f990f5006c7805adabd88833e3fdbd
tree3c083b430e6fea60e4a8ea21fc31ae88131ae6aa
parent2746f22a2b8436cf6025a47236ac6397e944c25f
[PATCH] amdgpu: add env support for amdgpu.ids path

In some cases, like when building a Snap application that uses
libdrm, the `amdgpu.ids` file isn't directly available at the
compiling place, but inside a mounted folder. This forces each
application to link/bind the file from the current place
(usually at the $SNAP/gnome-platform/usr/share/libdrm/amdgpu.ids)
which is cumbersome.

This patch allows to set an environment variable, called
AMDGPU_ASIC_ID_TABLE_PATH, where the file will be also searched
if it isn't located in the default, meson-configured, path.

Gbp-Pq: Name amdgpu-add-env-support-for-amdgpu-ids.patch
README.rst
amdgpu/amdgpu_asic_id.c